package com.cn.lp.export.client.entity;

import org.springframework.context.ApplicationEvent;

import java.util.UUID;

/**
 * Description: 请描述你的文件
 *
 * @author wuqirong
 * @date 2020-10-21
 * <p>
 * All rights Reserved, Designed www.xiao100.com
 */
public class ExportHandleEvent extends ApplicationEvent {

    private String uuid = UUID.randomUUID().toString();

    private BaseExportInfoParam.ExportEventResultVo result;

    /**
     * Create a new {@code ApplicationEvent}.
     *
     * @param source the object on which the event initially occurred or with
     *               which the event is associated (never {@code null})
     */
    public ExportHandleEvent(BaseExportInfoParam.ExportEventVo source) {
        super(source);
    }

    public BaseExportInfoParam.ExportEventVo getData() {
        return (BaseExportInfoParam.ExportEventVo) this.getSource();
    }

    public ExportHandleEvent setResult(BaseExportInfoParam.ExportEventResultVo result) {
        this.result = result;
        return this;
    }

    public BaseExportInfoParam.ExportEventResultVo getResult() {
        return result;
    }

}
